package ModelLayer;

public class Customer extends Person
{
    private String address;
    private int discount;
    private int bought;
    private int rented;
    private double income;

    public Customer( int id,  String name,  String email,String phoneNumber, String address,int discount )
    {
        super(id,name, email, phoneNumber);
        this.address = address;
        this.discount = discount;
        this.bought = 0;
        this.rented = 0;
        this.income = 0;
    }

    public Customer( int id,  String name,  String email,String phoneNumber, String address)
    {
        super(id,name, email, phoneNumber);
        this.address = address;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }
    
    public int getDiscount() {
        return discount;
    }
    
    public void setDiscount(int discount) {
        this.discount = discount;
    }
    
    public int getBought()
    {
        return bought;
    }
    
    public void setBought(int amount)
    {
        bought += amount;
    }
    
    public int getRented()
    {
        return rented;
    }
    
    public void setRented(int amount)
    {
        rented += amount;
    }
    
    public double getIncome()
    {
        return income;
    }
    
    public void setIncome(double price)
    {
        income += price;
    }
}
